<? include_once("../../../common/common_setting_unit.php"); //引入通用的设置文件?>



<?php


    $table= $table_prefix."data";
    $nid  =$_REQUEST['nid'];

    $_data['ai_status']="已删除";

    $_delete_sql=update_date($table,$_data,"nid",$nid);


	//$sql = "DELETE FROM $table WHERE nid= $nid";
	sql_log($_delete_sql);
    $query=mysql_query($_delete_sql) or die ('删除数据失败'.mysql_error().$_delete_sql);
    mysql_close($con);


    if($query){
        $arr['status'] = 200;
        $arr['info'] = '删除成功';
        die(json_encode($arr)) ;
    }
    else
    {
        $arr['status'] = 201;
        $arr['info'] = '删除失败';
        die(json_encode($arr)) ;
    }

?>



